package com.hh.feign;

import com.hh.entity.UserAddr;
import com.hh.feign.hystrix.OrderMemberFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author 辉辉 2022/8/22 9:46
 */
@FeignClient(value = "member-service", fallback = OrderMemberFeignHystrix.class)
public interface OrderMemberFeign {
    /**
     * 获取默认用户收货地址
     * @param openId
     * @return
     */
    @GetMapping("/p/address/getDefaultAddress")
    UserAddr getDefaultAddress(@RequestParam("openId") String openId);

}
